<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" errorPage="/error.jsp" isELIgnored="false" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<%@ taglib uri="http://atleap.blandware.com/taglib" prefix="atleap" %>
<html:xhtml />

<atleap:constants className="com.blandware.atleap.webapp.util.core.WebappConstants" var="CONTENT_LOCALES_COLLECTION_KEY" />
<atleap:content identifier="information" ignore="true" />
<br />
<atleap:form action="core/applicationResource/update" method="POST" validateOnSubmit="false">
	<atleap:messages property="updateFailed" />
    <table cellpadding="0" cellspacing="0" border="0" class="modificationTable">
		<tr>
			<th>
				<atleap:label property="title" styleClass="label" key="core.applicationResource.form.id.key" colon="false" helpTip="true" />
			</th>
			<td>
                <c:out value="${applicationResourceForm.key}" escapeXml="true" />
			</td>
		</tr>
		<tr>
			<td colspan="2" style="text-align: center;">
				<atleap:label property="value" key="core.applicationResource.form.value" colon="false" helpTip="true" />
			</td>
		</tr>
		<atleap:iterator items="${sessionScope[pageScope.CONTENT_LOCALES_COLLECTION_KEY]}" var="contentLocale">
			<tr>
				<th>
					<div class="languageField">
						<atleap:fieldValue valueMap="${contentLocale.title}" var="languageTitle" />
						<c:if test="${empty languageTitle}">
							<c:set var="languageTitle" value="${contentLocale.identifier}" />
						</c:if>
						<atleap:message key="core.applicationResource.form.id.language" />:&nbsp;${languageTitle}
					</div>
				</th>
				<td>
					<html:text property="value(${contentLocale.identifier})" styleClass="text" />
				</td>
			</tr>
			<html:hidden property="version(${contentLocale.identifier})" />
		</atleap:iterator>
    </table>
    <div>
        <html:hidden property="key" />
        <atleap:submit styleClass="button"><atleap:message key="core.commons.buttons.update" /></atleap:submit>
        <atleap:cancel styleClass="button"><atleap:message key="core.commons.buttons.cancel" /></atleap:cancel>
    </div>
</atleap:form>

